xi2: Don't set button mask 4 and 5
authorMatthias Clasen <mclasen@redhat.com>
Sat, 2 May 2015 15:51:38 +0000 (11:51 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 2 May 2015 15:55:57 +0000 (11:55 -0400)
commit2feaf8f970d93bf24d0e9036526e451413bc0f2f
treebe8405562528ad196fc678a9919ca2b78d7754af
parente478ec09b860d76fd61b95f594d5f9af4b69d8e2
xi2: Don't set button mask 4 and 5

We interpret buttons 4-7 as old-school scroll events, so it does
not make sense to add these to the mask. Also fix an off-by-one
in the loop here, buttons_mask is 1-based.
gdk/x11/gdkdevice-xi2.c